---
layout: "default"
title: "Global Functions"
description: "Documentation for all top-level, global functions in the Swift language."
root: "/v4.2"
---

<div class="row">
<div class="col-sm-6">
<ul class="main-list">
<li><a href="/v4.2/func/abs">abs</a></li>
<li><a href="/v4.2/func/assert">assert</a></li>
<li><a href="/v4.2/func/assertionFailure">assertionFailure</a></li>
<li><a href="/v4.2/func/debugPrint">debugPrint</a></li>
<li><a href="/v4.2/func/dump">dump</a></li>
<li><a href="/v4.2/func/fatalError">fatalError</a></li>
<li><a href="/v4.2/func/getVaList">getVaList</a></li>
<li><a href="/v4.2/func/isKnownUniquelyReferenced">isKnownUniquelyReferenced</a></li>
<li><a href="/v4.2/func/max">max</a></li>
<li><a href="/v4.2/func/min">min</a></li>
<li><a href="/v4.2/func/numericCast">numericCast</a></li>
<li><a href="/v4.2/func/precondition">precondition</a></li>
<li><a href="/v4.2/func/preconditionFailure">preconditionFailure</a></li>
<li><a href="/v4.2/func/print">print</a></li>
<li><a href="/v4.2/func/readLine">readLine</a></li>
<li><a href="/v4.2/func/repeatElement">repeatElement</a></li>
</ul>
</div>
<div class="col-sm-6">
<ul class="main-list">
<li><a href="/v4.2/func/sequence">sequence</a></li>
<li><a href="/v4.2/func/stride">stride</a></li>
<li><a href="/v4.2/func/swap">swap</a></li>
<li><a href="/v4.2/func/transcode">transcode</a></li>
<li><a href="/v4.2/func/type">type</a></li>
<li><a href="/v4.2/func/unsafeBitCast">unsafeBitCast</a></li>
<li><a href="/v4.2/func/unsafeDowncast">unsafeDowncast</a></li>
<li><a href="/v4.2/func/withExtendedLifetime">withExtendedLifetime</a></li>
<li><a href="/v4.2/func/withUnsafeBytes">withUnsafeBytes</a></li>
<li><a href="/v4.2/func/withUnsafeMutableBytes">withUnsafeMutableBytes</a></li>
<li><a href="/v4.2/func/withUnsafeMutablePointer">withUnsafeMutablePointer</a></li>
<li><a href="/v4.2/func/withUnsafePointer">withUnsafePointer</a></li>
<li><a href="/v4.2/func/withVaList">withVaList</a></li>
<li><a href="/v4.2/func/withoutActuallyEscaping">withoutActuallyEscaping</a></li>
<li><a href="/v4.2/func/zip">zip</a></li>
</ul>
</div>
</div>
